//
//  GameMarketModel.swift
//  JunYiProject
//
//  Created by xiaogxjkz on 2021/6/10.
//

import UIKit

@objc public class GameMarketModel : NSObject, Decodable {
    @objc public var day:String?
    @objc public var open:String?
    @objc public var high:String?
    @objc public var low:String?
    @objc public var close:String?
    @objc public var volume:String?
}


extension GameMarketModel {
    
    /// 模型转字典
    /// - Returns: [String:Any]
    @objc public func modelToDictionary() -> [String:Any] {
        return [
            "day":self.day as Any,
            "open":self.open as Any,
            "high":self.high as Any,
            "low":self.low!,
            "close":self.close as Any,
            "volume":self.volume as Any,
        ]
    }
    
}
